# -*- coding: utf-8 -*-

import clutter
import utils.actions #@UnresolvedImport

class KeyboardMapping:
    def __init__(self):
        self.listActions = {
            clutter.keysyms.w: utils.actions.SHOW_WIDGETS,
            clutter.keysyms.h: utils.actions.HIDE_WIDGETS,            
            clutter.keysyms.s: utils.actions.FADE_IN_WIDGETS,
            clutter.keysyms.q: utils.actions.FADE_OUT_WIDGETS,
            clutter.keysyms.r: utils.actions.REMOVE_WIDGET,
            clutter.keysyms.o: utils.actions.SHOW_AVAILABLE_WIDGETS,
            clutter.keysyms.l: utils.actions.LOAD_WIDGET,
            clutter.keysyms.n: utils.actions.NEXT_WIDGET

        }

    def action(self, event):
        if self.listActions.has_key(event.keyval):
            return self.listActions[event.keyval]
        else:
            pass

class RemoteControlMapping:
    def __init__(self):
        self.listActions = {}

    def action(self,event):
        if event in self.listActions:
            return self.listActions[event]
        else:
            pass